/**
 * 所有版权归 广西梧州 陈锦韬 所有
 *
 * @Title: DoubleUuaOrgInfo
 * @Package com.rx.uua.com.rx.stock.vo.relation
 * @Description: 机构双表查询
 * @author: 陈锦韬
 * @date: 2021\7\23 0023
 * @version V1.0
 * @Copyright: 2021 陈锦韬  All rights reserved.
 */
package com.rx.stang.vo.relation;

import com.rx.core.data.RxData;
import com.rx.core.iface.RelationQuery;
import com.rx.core.util.RxUtil;
import com.rx.stang.vo.TangNousInfo;
import com.rx.stang.vo.TangStageInfo;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * @author: Administrator
 * @Description: 机构双表查询
 * @date: 2021\7\23 0023
 */
@RxData
@Data
@EqualsAndHashCode(callSuper = true)
public class DoubleTangNousInfo extends TangNousInfo implements RelationQuery {

    Object relation;

    private String tag;

    private List<TangStageInfo> stageList;

    @Override
    public void assignRelation(Object object) {
        this.relation = object;
    }

    @Override
    public Object obtainRelation() {
        return relation;
    }

    public static DoubleTangNousInfo create(TangNousInfo tangNousInfo){
        DoubleTangNousInfo doubleTangNousInfo = new DoubleTangNousInfo();
        RxUtil.copyProperties(tangNousInfo,doubleTangNousInfo);
        return doubleTangNousInfo;

    }
}
